package com.wxq.koland.xiaoliscan.utils;

import android.util.Log;

/**
 * Created by wxq on 2019/8/26.
 * Love Life ~
 */

public class LogUtil {

    private static boolean isOpen = true;
    private static String logTag = "benben";

    public static void initLog (boolean open) {
        isOpen = open;
    }

    public static void e (String tag, String massage) {
        if (isOpen) {
            Log.e(logTag,tag  +" "+  massage);
        }
    }

    public static void e (String massage) {
        if (isOpen) {
            Log.e(logTag, massage);
        }
    }

    public static void d (String tag, String massage) {
        if (isOpen) {
            Log.d(logTag,tag  +" "+  massage);
        }
    }

    public static void d (String massage) {
        if (isOpen) {
            Log.d(logTag, massage);
        }
    }

    public static void v (String tag, String massage) {
        if (isOpen) {
            Log.v(logTag, tag +" "+ massage);
        }
    }

    public static void v (String massage) {
        if (isOpen) {
            Log.v(logTag, massage);
        }
    }

    public static void i (String tag, String massage) {
        if (isOpen) {
            Log.i(logTag, tag +" "+ massage);
        }
    }

    public static void i ( String massage) {
        if (isOpen) {
            Log.i(logTag, massage);
        }
    }

    public static void w (String tag, String massage) {
        if (isOpen) {
            Log.w(logTag,tag +" "+  massage);
        }
    }

    public static void w ( String massage) {
        if (isOpen) {
            Log.w(logTag, massage);
        }
    }

}
